import request from '@/router/axios';

/**
 * @param data 新增OSS
 * */
export const add = (data) => {
    return request({
        url: '/api/manager-api/mx-oss/insert',
        method: 'post',
        data
    })
}

/**
 * @param data 修改OSS
 * */
export const update = (data) => {
    return request({
        url: '/api/manager-api/mx-oss/update',
        method: 'post',
        data
    })
}

/**
 * @param params 查询OSS
 * */
export const getList = (params) => {
    return request({
        url: '/api/manager-api/mx-oss/page',
        method: 'get',
        params
    })
}

/**
 * @param params 查询OSS 不分页
 * */
export const getListData = (params) => {
    return request({
        url: '/api/manager-api/mx-oss/list',
        method: 'get',
        params
    })
}

/**
 * @param params 删除OSS
 * */
export const del = (params) => {
    return request({
        url: '/api/manager-api/mx-oss/delete',
        method: 'post',
        params: params
    })
}

/**
 * @param params 详情 OSS
 * */
export const detail = (params) => {
    return request({
        url: '/api/manager-api/mx-oss/detail',
        method: 'get',
        params
    })
}
